<?php

/**
 * @filename CateModel.class.php 
 * @encoding UTF-8 
 * @author yuzhiyuan <307090870@qq.com>
 * @copyright copyright 2013 (c) Emagsoftware Technology Co., Ltd. All Rights reserved.
 * @license ……
 * @datetime 2013-6-22  18:04:26
 * @version 1.0
 * @Description
  */
class CateModel extends Model {
    protected $_validate = array(
        array('c_name','require','分类名称必须！'),  
        array('c_name','','分类名称已经存在！',0,'unique',3),  
        array('p_id','require','父类必须！'),  
      
    );
    protected $_auto = array ( 
        array('sort','100'),
     
    );
    

}